home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
netz
/
interinstall
/
stopnet
< prev
next >
Wrap
Text File
|
1995-08-25
|
738b
|
41 lines
path amitcp:bin sys:rexxc sys:system add
failat 20
set IPHANGUP 0
echo "Stopnet for iNTERiNSTALL 1.51*n"
echo "Taking ppp.device offline."
ask "Also shutdown AmiTCP? (y/n): "
set tcpdown $rc
ask "Also attempt modem hangup? (y/n): "
if warn
echo "Trying to hang up... " noline
run >nil: serline "" $IPMODEMPORT
set IPHANGUP 1
endif
if $tcpdown EQ 5
run >nil: rx "if show('P','AMITCP')=1 then address AMITCP KILL"
wait 2
endif
offline ppp.device 0
if $IPHANGUP EQ 1
wait 2
serline "+++" $IPMODEMPORT
wait 2
serline "ATH®" $IPMODEMPORT
wait 5
serline "!" $IPMODEMPORT
if $rc EQ 0
echo "Carrier still present!"
wait 10
else
echo "NO CARRIER"
endif
break `status com serline`
endif
echo "Done."